package accountmanager;

import static org. junit. Assert. *;

import java.util.*;

import org. junit. Test;

import accountmanager.accounts.*;

public class AccountTest {
  
	AccountFactory accountFactory = new AccountFactory() ;
	
  @Test
  public void testCreateSavingsToString() throws Exception {
      Account account = accountFactory.createAccount("Savings");
      assertEquals( "Savings",account.toString() ) ;
      }
  
  @Test
  public void testCreateCheckingToString() throws Exception {
      Account account = accountFactory.createAccount("Checking");
      assertEquals( "Checking",account.toString() ) ;
      }
  
  @Test
  public void testCreateCODToString() throws Exception {
      Account account = accountFactory.createAccount("COD");
      assertEquals( "COD",account.toString() ) ;
      }
}